import Loadable from 'react-loadable'
import { loading } from '../loading'

const BooksAdmin = Loadable({
  loader: () => import('./BooksAdmin'),
  loading: loading
})

const NewsAdmin = Loadable({
  loader: () => import('./NewsAdmin'),
  loading: loading
})
const NewsEdit = Loadable({
  loader: () => import('./NewsAdmin/NewsEdit'),
  loading: loading
})
const NewsPublish = Loadable({
  loader: () => import('./NewsAdmin/NewsPublish'),
  loading: loading
})

export { BooksAdmin, NewsAdmin, NewsEdit, NewsPublish }
